#include "addressbooks.h"

int getPersonIndexByName(Addressbooks* abs, string targetName) {
	for (int i = 0; i < abs->m_Size; i++) {
		if (abs->personArray[i].m_Name == targetName) {
			return i;
		}
	}
	return -1;
}